namespace Garcon.Waiter.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class AddedSomeFieldsToUserProfile : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.UserProfile", "FirstName", c => c.String(nullable: false, maxLength: 100));
            AddColumn("dbo.UserProfile", "LastName", c => c.String(nullable: false, maxLength: 100));
            AddColumn("dbo.UserProfile", "Address", c => c.String(nullable: false, maxLength: 300));
            AddColumn("dbo.UserProfile", "Phone", c => c.String(nullable: false, maxLength: 60));
            AddColumn("dbo.UserProfile", "Email", c => c.String(nullable: false, maxLength: 100));
            AddColumn("dbo.UserProfile", "RestaurantName", c => c.String(nullable: false, maxLength: 100));
            AddColumn("dbo.UserProfile", "TablesAmount", c => c.Long(nullable: false));
            AddColumn("dbo.UserProfile", "Photo", c => c.Binary());
            AlterColumn("dbo.UserProfile", "UserName", c => c.String(nullable: false, maxLength: 100));
        }
        
        public override void Down()
        {
            AlterColumn("dbo.UserProfile", "UserName", c => c.String());
            DropColumn("dbo.UserProfile", "Photo");
            DropColumn("dbo.UserProfile", "TablesAmount");
            DropColumn("dbo.UserProfile", "RestaurantName");
            DropColumn("dbo.UserProfile", "Email");
            DropColumn("dbo.UserProfile", "Phone");
            DropColumn("dbo.UserProfile", "Address");
            DropColumn("dbo.UserProfile", "LastName");
            DropColumn("dbo.UserProfile", "FirstName");
        }
    }
}
